﻿using System.Collections.Generic;
using System.Windows.Forms;

namespace CiStatus.CiStatusAddIn.Views.ToolsOptionsViews
{
    public partial class AddSettingControl : UserControl
    {
        public AddSettingControl()
        {
            InitializeComponent();
        }

        public AddSettingControl(string key)
        {
            InitializeComponent();
            tbKey.Text = key;
        }

        protected override void OnCreateControl()
        {
            base.OnCreateControl();
            tbValue.Select();
        }
        public KeyValuePair<string, string> Pair 
        {
            get { return new KeyValuePair<string, string>(tbKey.Text.Trim(), tbValue.Text.Trim()); }
        }
    }
}
